package cn.wit.test;

public class Phone {
	private String brand;
	private double price;

	// 无参构造器
	public Phone() {

	}

	// 有参构造器
	public Phone(String brand, double price) {
		this.brand = brand;
		this.price = price;
	}

	// 打电话
	public void call() {
		System.out.println("正在使用价格为" + price + "的" + brand + "品牌的手机打电话");
	}

	// 发短信
	public void sendMessage() {
		System.out.println("正在使用价格为" + price + "的" + brand + "品牌的手机发短信");
	}

	// 打游戏
	public void playGame() {
		System.out.println("正在使用价格为" + price + "的" + brand + "品牌的手机打游戏");
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

}
